package xyz.yolin.test;

public class Singleton {
    //单例模式的伪代码
    private Singleton(){}
    private static Singleton instance;
    public static Singleton getInstance(){
        if (instance==null){
            instance=new Singleton();
        }
        return instance;
    }
}
